package po.entity;

import po.enums.ParamValueType;
import java.util.List;

/**
 * Created by guowei on 2019/6/9.
 */
public class Param {
    private String ID;
    private String name;
    private ParamValue value;

    public Param(String ID, String name, ParamValueType type, List<String> valueEnum, double max, double min) {
        this.ID = ID;
        this.name = name;
        this.value = new ParamValue(type, valueEnum, max, min);
    }

    public String getID() {
        return ID;
    }

    public String getName() {
        return name;
    }

    public ParamValue getValue() {
        return value;
    }

    public void setValue(ParamValue value) {
        this.value = value;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder("PARAM<ID: ");
        sb.append(this.ID);
        sb.append(", Name: ");
        sb.append(this.name);
        sb.append(", ParamValue: ");
        sb.append(this.value.toString());
        sb.append(">");
        return sb.toString();
    }
}
